import request from '@/utils/request';
import { getPageSize } from '@/utils/common';

export async function tireList(params) {
  params.pageSize = params.pageSize || getPageSize();
  return request(`/server/api/tms/tms-vehicle-tire/selectList`, {
    method: 'POST',
    body: params,
  });
}

export async function tireDetail(params) {
  return request(`/server/api/tms/tms-vehicle-tire/selectDetails`, {
    method: 'POST',
    body: params,
  });
}

export async function tireAdd(params) {
  return request(
    `/server/api/tms/tms-vehicle-tire/insertOil`,
    {
      method: 'POST',
      body: params,
    },
    true
  );
}

export async function tireEdit(params) {
  return request(
    `/server/api/tms/tms-vehicle-tire/updateOil`,
    {
      method: 'POST',
      body: params,
    },
    true
  );
}
export async function carList(params) {
  return request(
    `/server/api/tms/tms-vehicle-tire/selectVehicle`,
    {
      method: 'POST',
      body: params,
    },
    true
  );
}
//删除
export async function deleteTire(params) {
  return request(`/server/api/tms/tms-vehicle-tire/deleteTmsVehicleTire`, {
    method: 'POST',
    body: params,
  });
}
